package com.usian.feign;

import com.usian.user.Departments;
import com.usian.user.Users;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author:张永杰
 * @ClassName: UserFeign
 * @Date: 2024/12/11
 * @Description:
 */
@FeignClient("user")
public interface UserFeign {

    @GetMapping("/user/getUserById/{userId}")
    Users getUserById(@PathVariable("userId")Integer userId);
    @GetMapping("/user/getDeptById/{deptId}")
    Departments getDeptById(@PathVariable("deptId")Integer deptId);
}
